package com.chinairi.mall.service.impl;

import com.chinairi.mall.model.ContractService;
import com.chinairi.mall.dao.ContractServiceMapper;
import com.chinairi.mall.service.IContractServiceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chinairi.mall.service.modelobject.ViewContractServiceMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 合同_服务表 服务实现类
 * </p>
 *
 * @author Webgasd
 * @since 2020-09-03
 */
@Service
public class ContractServiceServiceImpl extends ServiceImpl<ContractServiceMapper, ContractService> implements IContractServiceService {
    @Autowired
    private ContractServiceMapper contractServiceMapper;

    /**
     * 根据合同编号获取合同中的服务种类
     *
     * @param contDbId 合同编号id
     * @return ContractService
     */
    @Override
    public ViewContractServiceMO getByContDbId(String contDbId) {
        return contractServiceMapper.getByContDbId(contDbId);
    }
}
